﻿/******************************************************************
** Copyright (c) 2016 正道远研发中心
** 创建人:  youping
** 创建日期:2018-03-27
** 修改人:
** 修改日期:
** 描 述:  用户表信息
** 版 本:1.0
**-----------------------------------------------------------------
*******************************************************************/

using System;

namespace PingYou.Demo.BU.Data
{
	using Smart.Core;
	
	[Table("SYS_User")]
	[Serializable()]
	public class SYSUserData : FunBuilder<SYSUserData>
	{
		public SYSUserData()
		{
			base.InitEntity(this);
		}
		
		private string _ID = string.Empty;
		/// <summary>
		/// 主键ID
		/// </summary>
		[Column(ColumnTypeAttr = ColumnType.PrimaryKey)]
		public string ID
		{
			get { return _ID; }
			set { _ID = value; }
		}
		
		private string _LoginName = string.Empty;
		/// <summary>
		/// 登陆名
		/// </summary>
		public string LoginName
		{
			get { return _LoginName; }
			set { _LoginName = value; }
		}
		
		private string _PASSWORD = string.Empty;
		/// <summary>
		/// 登陆密码
		/// </summary>
		public string PASSWORD
		{
			get { return _PASSWORD; }
			set { _PASSWORD = value; }
		}
		
		private int _UserType = 0;
		/// <summary>
		/// 用户类型 0:管理员 1普通用户;多个用","分隔
		/// </summary>
		public int UserType
		{
			get { return _UserType; }
			set { _UserType = value; }
		}
		
		private string _EmployeeID = string.Empty;
		/// <summary>
		/// 用户ID（管理员/普通用户）
		/// </summary>
		public string EmployeeID
		{
			get { return _EmployeeID; }
			set { _EmployeeID = value; }
		}
		
		private string _EmpName = string.Empty;
		/// <summary>
		/// 人员姓名（管理员/普通用户）
		/// </summary>
		public string EmpName
		{
			get { return _EmpName; }
			set { _EmpName = value; }
		}
		
		private string _UnitID = string.Empty;
		/// <summary>
		/// 用户默认实体单位ID
		/// </summary>
		public string UnitID
		{
			get { return _UnitID; }
			set { _UnitID = value; }
		}
		
		private string _StartDate = string.Empty;
		/// <summary>
		/// 开始时间
		/// </summary>
		public string StartDate
		{
			get { return _StartDate; }
			set { _StartDate = value; }
		}
		
		private string _EndDate = string.Empty;
		/// <summary>
		/// 结束时间
		/// </summary>
		public string EndDate
		{
			get { return _EndDate; }
			set { _EndDate = value; }
		}
		
		private string _Ip = string.Empty;
		/// <summary>
		/// 用户IP
		/// </summary>
		public string Ip
		{
			get { return _Ip; }
			set { _Ip = value; }
		}
		
		private string _Mac = string.Empty;
		/// <summary>
		/// 用户Mac地址
		/// </summary>
		public string Mac
		{
			get { return _Mac; }
			set { _Mac = value; }
		}
		
		private int _IsLock = 0;
		/// <summary>
		/// 是否锁定 0否 1是
		/// </summary>
		public int IsLock
		{
			get { return _IsLock; }
			set { _IsLock = value; }
		}
		
		private int _IsInitialLogin = 0;
		/// <summary>
		/// 是否初次登录 0否 1是
		/// </summary>
		public int IsInitialLogin
		{
			get { return _IsInitialLogin; }
			set { _IsInitialLogin = value; }
		}
		
		private int _NextLoginChange = 0;
		/// <summary>
		/// 下次登录更改密码:0否 1是
		/// </summary>
		public int NextLoginChange
		{
			get { return _NextLoginChange; }
			set { _NextLoginChange = value; }
		}
		
		private string _UserDesc = string.Empty;
		/// <summary>
		/// 用户描述
		/// </summary>
		public string UserDesc
		{
			get { return _UserDesc; }
			set { _UserDesc = value; }
		}
		
		private int _Enabled = 0;
		/// <summary>
		/// 是否有效 1为有效，0为无效
		/// </summary>
		[Column(ColumnTypeAttr = ColumnType.Enabled)]
		public int Enabled
		{
			get { return _Enabled; }
			set { _Enabled = value; }
		}
		
		private string _CreateStaff = string.Empty;
		/// <summary>
		/// 创建人
		/// </summary>
		[Column(ColumnTypeAttr = ColumnType.CreateStaff)]
		public string CreateStaff
		{
			get { return _CreateStaff; }
			set { _CreateStaff = value; }
		}
		
		private string _CreateDate = string.Empty;
		/// <summary>
		/// 创建时间
		/// </summary>
		[Column(ColumnTypeAttr = ColumnType.CreateDate)]
		public string CreateDate
		{
			get { return _CreateDate; }
			set { _CreateDate = value; }
		}
		
		private string _ModifyStaff = string.Empty;
		/// <summary>
		/// 修改人
		/// </summary>
		[Column(ColumnTypeAttr = ColumnType.ModifyStaff)]
		public string ModifyStaff
		{
			get { return _ModifyStaff; }
			set { _ModifyStaff = value; }
		}
		
		private string _ModifyDate = string.Empty;
		/// <summary>
		/// 修改时间
		/// </summary>
		[Column(ColumnTypeAttr = ColumnType.ModifyDate)]
		public string ModifyDate
		{
			get { return _ModifyDate; }
			set { _ModifyDate = value; }
		}
		
	}
}
